<div class="executive-search">
	<form method="get">
	<img width="40" height="44"  src="themes/default/images/ico_search2.png">
      <input type="text" style="width:350px; height:25px;" name="name">
      ปีงบประมาณ 
       
		<?php echo form_year('year',@$_GET['year']) ?>
	<input type="image" src="themes/default/images/btn_search.png" style="position:relative; top:6px;" />
	</form>
</div>

<div class="box">
	<h1 class="<?php echo $color[$group->id] ?>">
		<img src="uploads/icon/head/jd.png" />
		<span><?php echo $group->name ?></span>
		<div class="corner_left"></div>
		<div class="corner_right"></div>
	</h1>
	<div class="view">
		<table class="tbexecutive">
		<tr>
			<th>ลำดับที่</th>
			<th>ชือ - นามสกุล</th>
			<th>ปี</th>
			<th>รูป</th>
		</tr>
		<?php foreach($contents as $key => $content): ?>
		<tr>
			<td><?php echo $content->col ?></td>
			<td><?php echo $content->firstname.' '.$content->lastname; ?></td>
			<td><?php echo $content->year_start.' - '.((!$content->year_end)?'ปัจจุบัน':$content->year_end) ?></td>
			<td>
				<?php if((is_file('uploads/board/'.$content->image))&&($content->image)): ?>
				<img src="uploads/board/<?php echo $content->image; ?>" />
				<?php else: ?>
				<img src="themes/default/images/img.jpg" />
				<?php endif; ?>
			</td>
		</tr>
		<?php endforeach; ?>
		</table>
		<?php //echo $contents->pagination() ?>
	</div>
</div>
